package com.eagle.epay.controller;


import com.eagle.epay.service.ICategoryService;
import com.eagle.epay.vo.CategoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author eagle
 * @since 2019-12-21
 */
@RestController
@RequestMapping("/category")
public class CategoryController {
	@Autowired
	ICategoryService categoryService;

	@GetMapping("/list")
	public List<CategoryVo> getList(){
		return categoryService.getCategoryList();
	}


}

